
function validatePref(currentTeam) {
	
	var t = document.getElementById('team');
	var f = document.getElementById('reg_form');
	
	if (t.value!=currentTeam) {
		var r=confirm(userprefteamchange);
		if (r==true) {
			f.submit();
		} else {
			t.value = currentTeam;
		}	
	} else {
		if (f.lang.value != f.currentlang.value) {
			f.submit();
		} else {
			doProcess('reg_form');
		}
	}
	
}